{block header}
	<div class="hero-unit">
		<h1>Seznam uživatelů</h1>
	</div>
{/block}

{block content}
	<table n:if="$users" class="table table-bordered table-condensed table-striped table-hover">
		<thead>
			<th class="span3">Jméno</th>
			<th>Telefon</th>
			<th>Email</th>
			<th>Město</th>
			<th class="span2">Akce</th>
		</thead>
		<tbody>
			<tr n:foreach="$users as $user">
				<td><i class="icon-user"></i> {$user->name} {$user->surname}</td>
				<td>{$user->phone}</td>
				<td>{$user->username}</td>
				<td>{$user->city}</td>
				<td>
					<a n:href="add, $user->id" class="ajax"><i class="icon-plus-sign" title="Přidat místo"></i></a>
					<a n:href="detail, $user->id" class="ajax"><i class="icon-list-alt" title="Detail místa"></i></a>
					<a n:href="edit, $user->id" class="ajax"><i class="icon-pencil" title="Upravit msto"></i></a>
					<a n:href="delete, $user->id" class="ajax"><i class="icon-trash" title="Smazat místo"></i></a>
				</td>
			</tr>
		</tbody>
	</table>
	<p n:if="!$users">Nemáte v databázi žádná místa.</p>
